var url = 'https://english.szhwachuan.com/'; //正式
var url_AI1 = 'https://api.accuread.cn/'; //AI自己的接口
var url_AI = 'https://v2.accuread.cn/'; //AI自己的接口
var url_dict = 'https://api.buguzx.cn/'; //词典域名

//单词卡
var path_login = 'api/login/';
var path_Login = "api/Login/"
var path_common = 'api/common/';
var path_tts = 'api/Tts/';
var path_upload = 'api/Upload/';
var path_pay = 'api/pay/';
var path_aritcle = 'api/Article/';
var path_user = 'api/User/';
var path_word = 'api/Word/';
var path_article = 'api/Article/';
var path_app = 'app/';
var path_egai = "api/egai/"
var path_task = "api/task/"
var http = {
	runType: 2,
	//1小程序 2app
	loginData: 'loginData',
	//鉴权后数据
	egaiLoginData: 'egaiLoginData',
	//EGAI登录后数据
	tokenData: 'tokenData',
	userId: 'userId',
	iflogin: 'iflogin',
	token: 'token',
	//感心接口
	phone: 'phone',
	expirTime: 'expirTime',
	//感心token结束时间
	bgToken: 'bgToken',
	//布谷词典
	bgExpireDate: 'bgExpireDate',
	//布谷词典token结束时间
	uuid: 'uuid',
	//布谷uuid
	customId: 'b64899d63d23c54a1ae41100d09a9028',
	appId: '840dce746b3b3ff404089307321ab832',
	appKey: 'd0a21ab712a614cce2ad1f3a2f39ab5b',
	secretKey: 'fe2426828cbe522de181c55a6bd688a5',
	accessKey: 'be92323we2redf23630a6wer21dfe163',
	stAppKey: '17337961090003e5', //声通
	stSecretKey: 'be41a8edf0847088d3bfd53d998b4121', //声通
	//词典接口 key
	apiKey: 'dbe909238ada4f1c91a4b3d4eacf31d5',
	//图灵
	secret: '50x53U65mx7z6495',
	//图灵
	url: url,
	imgUrl: url_AI1 + path_app,
	correct: url_AI1 + path_app + 'correct.MP3',
	//正确
	// error: url_AI1 + path_app + 'error.MP3',
	error: url_AI1 + path_app + 'error2.mp3',
	//错误
	authUserInfo: url_dict + 'authUserInfo',
	//获取布谷词典token
	search: url_dict + 'search/selectDicData',
	//布谷词典搜索
	getMiniUserPhone: url_AI + path_login + 'getMiniUserPhone',
	//获得手机号
	phoneLogin: url_AI + path_login + 'phoneLogin',
	//输入手机号登录-小程序端
	phoneLoginNoCode: url_AI + path_login + 'phoneLoginNoCode',
	//输入手机号登录-app端
	recordUserDay: url_AI + path_common + 'recordUserDay',
	//记录使用天数
	getRandNum: url_AI + path_tts + 'getRandNum',
	//获得tts deviceid
	getUserInfo_AI: url_AI + path_user + 'getUserInfo',
	//获得用户信息
	setUserName: url_AI + path_user + 'setUserName',
	//编辑用户名
	setUserSex: url_AI + path_user + 'setUserSex',
	//编辑性别
	check_cd_key: url_AI + path_user + 'check_cd_key',
	//兑换码
	getPayParam: url_AI + path_pay + 'getPayParam',
	//支付
	getOrderList: url_AI + path_user + 'getOrderList',
	//订单列表
	setReviewStatus: url_AI + path_user + 'setReviewStatus',
	//标记是否进行过单词评测
	addWordReview: url_AI + path_word + 'addWordReview',
	//提交单词评测数据
	setEgaiStatus: url_AI + path_user + 'setEgaiStatus',
	//标记是否注册过egai
	uploadImg: url_AI + path_upload + 'uploadImg',
	//上传图片
	setUserImg: url_AI + path_user + 'setUserImg',
	//用户头像上传
	saveArticleData: url_AI + path_aritcle + 'saveArticleData',
	//上传文章（文章+单词）
	changeArticleQuesStatus: url_AI + path_aritcle + 'changeArticleQuesStatus',
	//更新文章 阅读理解选项
	bookWordList: url_AI + path_word + 'wordList',
	//生词本
	setWordStatus: url_AI + path_word + 'setWordStatus',
	//生词本标记状态
	articleList: url_AI + path_article + 'articleList',
	//阅读历史
	articleInfo: url_AI + path_article + 'articleInfo',
	//阅读历史
	register: url + path_user + 'Register',
	//提交评测结果-给马尧
	sendCpData: url_AI + path_egai + 'sendCpData',
	//用户协议
	yhxy: url_AI + 'api/common/yhxy',
	//隐私政策
	yszc: url_AI + 'api/common/yszc',
	//输入手机号登录-
	login_new: url_AI + path_Login + 'login',
	regist_new: url_AI + path_Login + 'reg',
	//首页任务
	taskgetTaskList: url_AI + path_task + 'getTaskList',
	//阅读理解
	getArticleInfo: url_AI + path_task + 'getArticleInfo',
	//获取任务-词汇、听说、语法、闯关
	getWordQues: url_AI + path_task + 'getWordQues',
	//提交阅读理解选择
	subTaskArticle: url_AI + path_task + 'subTaskArticle',
	//提交刻意练习
	subTaskWord: url_AI + path_task + 'subTaskWord',
	//自有库语法评测题
	getOwnGrammar: url_AI + path_egai + 'getOwnGrammar',
	//提交自有库语法评测题
	subOwnGrammar: url_AI + path_egai + 'subOwnGrammar',
	//提交egai的单词音频转换成我们的
	get_word_audio: url_AI + path_egai + 'get_word_audio',
	//阅读理解-答案解析
	getCozeMsg: url_AI + path_task + 'getCozeMsg',
	getQuesCheckMsg: url_AI + path_task + 'getQuesCheckMsg',
	getQuesCheckMsgs: url_AI + path_task + 'getQuesCheckMsgs',
	//获得任务列表
	getUserTaskList: url_AI + path_user + 'getUserTaskList',
	//获取单词复核数据
	getTaskWordReview: url_AI + path_task + 'getTaskWordReview',
	//提交单词复核数据
	subTaskWordReview: url_AI + "api/task/subTaskWordReview",
	//消息列表
	msgList: url_AI + path_user + 'msgList',
	//消息详情
	msgInfo: url_AI + path_user + 'msgInfo',
	//消息全部已读
	msgAllRead: url_AI + path_user + 'msgAllRead',
	//获取评测数据
	getEgaiCpData: url_AI + path_egai + 'getEgaiCpData',
	//官网消息
	getNewsList: url_AI +'api/news/getNewsList',
	

	//注册
	getAccessToken: url + path_user + 'GetAccessToken',
	//GetAccessToken
	getUserInfo: url + path_user + 'GetUserInfo/',
	//getUserInfo
	getUserStudyData: url + path_user + 'getuserstudydata',
	//学习生涯
	getWordtest: url + path_word + 'wordtest',
	//评测单词
	getWordDetail: url + path_word + 'getwordtestcontentnew',
	//单词详情
	uploadWordInfo: url + path_word + 'submittestcontentv2',
	//提交评测单词
	getevaluationresult: url + path_word + 'getevaluationresult',
	//获取评测结果
	geTarticle: url + path_article + 'getarticle',
	//获取用户文章
	getArticleById: url + path_article + 'getArticleById',
	//获取用户文章
	getarticlequestion: url + path_article + 'getarticlequestion/',
	//获取用户文章阅读理解题目
	submituserarticlequestions: url + path_article + 'submituserarticlequestions',
	//用户提交阅读理解做题结果
	getReadStatus: url_AI + path_user + 'getReadStatus',
	//获取阅读状态
	getKyStatus: url_AI + path_user + 'getKyStatus',
	//获取刻意练习状态
	changeUserStatus: url_AI + path_user + 'changeUserStatus',
	//初始化阅读状态和刻意练习状态
	surveyWords: url + 'SurveyWords',
	//获得评测单词--新接口
	getWordStudyContent: url + 'GetWordStudyContent',
	//获得评测单词--新接口
	submittestcontentv2: url + 'submittestcontentv2',
	//提交首测层级结果--新接口
	getevaluationresultnew: url + 'getevaluationresult',
	//获取首测结果--新接口
	getArticlenew: url + 'getArticle',
	//获取文章--新接口
	getExerciseById: url + 'getExerciseById',
	//根据练习Id获取练习--新接口
	getArticleQuesions: url + 'GetArticleQuesions',
	//获取文章题目--新接口
	getFilterWords: url + 'GetFilterWords',
	//获取词汇检测表--新接口
	newsubmitArticleAnswer: url + 'SubmitArticleAnswer',
	//获取词汇检测表--新接口
	loadingTitle: '加载中。。。',
	timeout: 1000,
	//评测/阅读 结束后等待时间
	deviceid: 'deviceid',
	//tts deviceid
	newArticlesList: 'newArticlesList',
	//新的用户文章
	newwordList: 'newwordList',
	//新的文章的单词
	userArticles: 'userArticles',
	//文章
	userArticles2: 'userArticles2',
	//文章2
	article_id: 'article_id',
	//提前上传的文章1
	article_id2: 'article_id2',
	//提前上传的文章2
	userArticlestts: 'userArticlestts',
	//文章tts
	userArticlesttsTime: 'userArticlesttsTime',
	//文章tts创建时间
	userArticleInfos: 'userArticleInfos',
	//用户学习行文数据
	wordList: 'wordList',
	//文章的单词
	wordList2: 'wordList2',
	//文章2的单词
	readWordTest: 'readWordTest',
	//文章的单词测评数据
	readWordTest_Word: 'readWordTest_Word',
	//文章的单词测评数据-单词
	readWordTest_Listener: 'readWordTest_Listener',
	//文章的单词测评数据-听说
	readWordTest_CG: 'readWordTest_CG',
	//文章的单词复核数据
	readWordReview: 'readWordReview',
	//文章的单词测评数据-闯关
	articlequestion: 'articlequestion',
	//文章的阅读理解题目
	articlequestion2: 'articlequestion2',
	//文章2的阅读理解题目
	wordTestData: 'wordTestData',
	//评测数据
	wordTestStartTime: 'wordTestStartTime',
	//单词测评开始时间
	wordTestEndTime: 'wordTestEndTime',
	//单词测评结束时间
	historySteps: 'historySteps',
	//历史评测层级
	wordReviewData: 'wordReviewData',
	//单词复核数据
	period: 'period' ,//学段
	taskId:"taskId",//任务id
	accountList:"accountList",
	read_articleId:"read_articleId",
	read_articleIndex:"read_articleIndex",
	read_taskId:"read_taskId",
	//游戏化数据
	quickWordData: 'quickWordData',//单词复核数据
	quickDiscernWordStartTime:'quickDiscernWordStartTime',//过关斩词第一部分开始时间
};

module.exports = http;